package com.carleasoft.mps.cms.business.education.constans;

/**
 * @author: yangHao
 * @createDate:2023/5/18
 * @description:
 */
public enum EducationEnum {


    TO_BE_RELEASED(1, "精华稿件"),
    NOT_PASS(2, "最新上稿"),
    RELEASE(3, "点击排行"),
    FINISH(4, "网站公告"),
    ;

    private Integer code;

    private String message;

    EducationEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }


    public static String getPaymentType(int value) {
        for (EducationEnum paymentTypeEnum : EducationEnum.values()) {
            if (value == paymentTypeEnum.getCode()) {
                return paymentTypeEnum.getMessage();
            }
        }
        return null;
    }
}
